module.exports = (app) => {
  const {
    controller,
    router,
    config: { api },
  } = app;
  router.get(`${api.v1}exchange_code/:id`, controller.share.exchangeCodePage);
  router.get(`${api.v1}share/list`, controller.share.list);
  router.put(`${api.v1}share/exchange_code`, controller.share.exchangeCode);
  router.put(`${api.v1}share/create_code`, controller.share.createCode);
};
